﻿@model KL.Store.Web.Models.GuarantorModel
@{
    Layout = null;
}
<div id="GuarantorList">
    @using (Ajax.BeginForm("UpdateGuarantor", "Account", new { }, new AjaxOptions { HttpMethod = "Post" }, new { id = "UpdateGuarantorForm", name = "UpdateGuarantorForm", @class = "form-horizontal" }))
    {   
        @Html.HiddenFor(m => m.AccountId)
        <div class="form-group">
            <h4>Aşağıdaki bilgilerin Nüfus Cüzdanı bilgileri ile doldurulması gerekmektedir.</h4>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.FirstName) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.FirstName, new { @class = "form-control", maxlength = "50" })
            </div>
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.LastName) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.LastName, new { @class = "form-control", maxlength = "50" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.Cinsiyet) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @{var Cinsiyetler = new List<SelectListItem> {
                                                                            new SelectListItem {Text = "Seçiniz", Value = ""},
                                                                            new SelectListItem {Text = "Erkek", Value = "Erkek"},
                                                                            new SelectListItem {Text = "Kadın", Value = "Kadın"}                                          
                                          
                                          };}
                @Html.DropDownListFor(m => m.Cinsiyet, Cinsiyetler, new { @class = "form-control", @maxlength = "50" })
            </div>
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.BirthDayNumber) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                <div class="col-xs-3 first last">
                    @Html.DropDownListFor(m => m.BirthDayNumber, Model.days, new { @style = "width:100%", @class = "form-control" })
                </div>
                <div class="col-xs-5 first last">
                    @Html.DropDownListFor(m => m.BirthMonth, Model.months, new { @style = "width:100%", @class = "form-control" })
                </div>
                <div class="col-xs-4 first last">
                    @Html.DropDownListFor(m => m.BirthYear, Model.years, new { @style = "width:100%", @class = "form-control" })
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.DogumYer) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.DogumYer, new { @class = "form-control", maxlength = "50" })
            </div>
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.CepTel) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.CepTel, new { @class = "form-control TelefonNo", maxlength = "40" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.EvAdres) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.EvAdres, new { @class = "form-control", maxlength = "100" })
            </div>
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.EvTel) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.EvTel, new { @class = "form-control TelefonNo", maxlength = "40" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.IsYeriAdi) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.IsYeriAdi, new { @class = "form-control", maxlength = "50" })
            </div>
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.IsAdres)
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.IsAdres, new { @class = "form-control", maxlength = "100" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.IsTel)
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.IsTel, new { @class = "form-control TelefonNo", maxlength = "40" })
            </div>
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.IsGorev) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.IsGorev, new { @class = "form-control", maxlength = "50" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.Baba_Ad) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.Baba_Ad, new { @class = "form-control", maxlength = "50" })
            </div>
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.Anne_Ad) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.Anne_Ad, new { @class = "form-control", maxlength = "50" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.N_TCKimlikNo) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.N_TCKimlikNo, new { @class = "form-control TcKimlikNo", maxlength = "11" })
            </div>
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.N_SeriNo) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.N_SeriNo, new { @class = "form-control n_serino", maxlength = "10" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.N_Cuzdan_No) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.N_Cuzdan_No, new { @class = "form-control n_cuzdanno", maxlength = "10" })
            </div>
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.N_KutukIl) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.DropDownListFor(m => m.N_KutukIl, new SelectList(Model.CityList, "CityName", "CityName"), new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.N_Ilce) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.N_Ilce, new { @class = "form-control", maxlength = "50" })
            </div>
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.N_Mahalle) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.N_Mahalle, new { @class = "form-control", maxlength = "50" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.N_CiltNo) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.N_CiltNo, new { @class = "form-control n_numerik10", maxlength = "10" })
            </div>
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.N_AileSiraNo) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.N_AileSiraNo, new { @class = "form-control n_numerik10", maxlength = "10" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.N_SiraNo) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @Html.TextBoxFor(m => m.N_SiraNo, new { @class = "form-control n_numerik10", maxlength = "10" })
            </div>
            <div class="col-xs-12 col-sm-5 col-md-2 col-lg-2 first last">
                @Html.LabelFor(m => m.EvKendineAit) <span class="required">*</span>
            </div>
            <div class="col-xs-12 col-sm-7 col-md-4 col-lg-4">
                @{
                  var eh = new List<SelectListItem> {
                                                                            new SelectListItem {Text = "Seçiniz", Value = "-1"},
                                                                            new SelectListItem {Text = "Kira", Value = "0"},
                                                                            new SelectListItem {Text = "Kendisine Ait", Value = "1"},
                                                                          };
                }
                @Html.DropDownListFor(m => m.EvKendineAit, eh, new { @class = "form-control" })
            </div>
        </div>   
        <div class="form-group alignright">
            <div class="col-xs-12">
                <button type="submit" class="btn btn-custom1">Gönder</button>
            </div>
        </div>      
    }
</div>
<script>
    function kefilEklendi()
    {
        parent.$.fancybox.close();
    }
    function kefilEklenemedi(mesaj)
    {
        alert(mesaj);
    }
</script>
